//商品路由器
const express = require('express');
//使用express的路由
const router = express.Router();
router.get('/list',(req,res)=>{
   res.send('this is product list');
});
router.get('/detail',(req,res)=>{
   res.send('this is product detail');
});
router.get('/detail2',(req,res)=>{
   res.send('this is product detail2');
});
//把router对象导出
module.exports = router;